package com.zhkjnet.zhyy.dao;

import com.zhkjnet.zhyy.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {

    void save(User user);

    User findByPhoneAndPassword(@Param("phone") String phone, @Param("password") String password);

    void update(User user);

    List<User> findAll(@Param("offset") Long offset, @Param("count") Integer count);

    Long count();

    User findById(Long id);

}